package com.dgut.legalservice.domain.contract;

import com.dgut.legalservice.domain.attachment.Attachment;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

//合同
public class Contract {
    private Integer id;
    private String name;//合同标题
    private String contractType;//合同类型
    private List<ContractStep> contractSteps;//合同步骤
    private ContractRecord contractRecord;//合同定制记录
    private Attachment att;//关联附件表

    private String createTime;//创建时间
    private String updateTime;//更新时间
    private Integer createBy;//创建人
    private Integer updateBy;//修改人

    //合同类型 定义数据
    private static final String[] TYPE = {"销售合同", "采购合同", "保密合同"};

    @Override
    public String toString() {
        return "Contract{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", contractType='" + contractType + '\'' +
                ", contractSteps=" + contractSteps +
                ", contractRecord=" + contractRecord +
                ", att=" + att +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", createBy=" + createBy +
                ", updateBy=" + updateBy +
                '}';
    }

    public static String[] getTYPE() {
        return TYPE;
    }

    public Attachment getAtt() {
        return att;
    }

    public void setAtt(Attachment att) {
        this.att = att;
    }

    public ContractRecord getContractRecord() {
        return contractRecord;
    }

    public void setContractRecord(ContractRecord contractRecord) {
        this.contractRecord = contractRecord;
    }

    public List<ContractStep> getContractSteps() {
        return contractSteps;
    }

    public void setContractSteps(List<ContractStep> contractSteps) {
        this.contractSteps = contractSteps;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }
}